# import threading
import signal
# import time

def myHandler(signum,frame):
    print("exit")

signal.signal(signal.SIGALRM,myHandler)
signal.pause();
print("ok exit");

def hello(name):
    print "hello %s\n" % name

    global timer
    timer = threading.Timer(2.0, hello, ["Hawk"])
    timer.start()

if __name__ == "__main__":
    timer = threading.Timer(2.0, hello, ["Hawk"])
    timer.start()

